package com.android.manghe.market.model;

import com.android.base.okhttp.okUtil.base.NetBean;

import java.util.List;

/**
 * 商城分类 （大小类）
 */
public class MarketCatInfo extends NetBean<List<MarketCatInfo>> {

        /**
         * id : 120
         * catname : 十元专区
         * parentid : 0
         * arrchildid : 120,153
         * child : 1
         * thumb :
         * ismenu : 1
         * isrec : 0
         * thumb_rec : null
         * sub : [{"id":"153","catname":"子栏目一","parentid":"120","arrchildid":"153","child":"0","thumb":"","ismenu":"1","isrec":"0","thumb_rec":null,"sub":null}]
         */

        public String id;
        public String catname;
//        public String parentid;
//        public String arrchildid;
//        public String child;
        public String thumb;
//        public String ismenu;
//        public String isrec;
//        public Object thumb_rec;
        public List<SubBean> sub;

        public boolean isSelected;

    public MarketCatInfo(String id, String catname, boolean isSelected) {
        this.id = id;
        this.catname = catname;
        this.isSelected = isSelected;
    }

    public static class SubBean {
            /**
             * id : 153
             * catname : 子栏目一
             * parentid : 120
             * arrchildid : 153
             * child : 0
             * thumb :
             * ismenu : 1
             * isrec : 0
             * thumb_rec : null
             * sub : null
             */

            public String id;
            public String catname;
            public String parentid;
            public String arrchildid;
            public String child;
            public String thumb;
            public String ismenu;
            public String isrec;
            public Object thumb_rec;
            public Object sub;

        public SubBean(String id, String catname, String thumb) {
            this.id = id;
            this.catname = catname;
            this.thumb = thumb;
        }
    }
}
